import express from "express";
import {
    signIn,
    login,
    getUserInfo,
    updateUserPassword,
    sendEmailUpdatePassword,
    updateUserInfo, getNewToken, getUserInfoList
} from '../controllers/user.js';
let router = express.Router();

router.post('/signin', signIn);
router.post('/login', login);
router.post('/getnewtoken', getNewToken);
router.get('/getinfo', getUserInfo);
router.post('/getinfolist', getUserInfoList);
router.get('/updatepassword', updateUserPassword);
router.get('/updateinfo', updateUserInfo);
router.get('/sendemail', sendEmailUpdatePassword);
export default router;


